#pragma once
#include <fstream>
#include <windows.h>
#include <iostream>
#include "dxManager.h"

class Block
{
private:
	struct BlockStuff
	{
		int m_BlockHeight, m_BlockWidth;
	}bS;

	struct spriteStruct{
	RECT srcRect;				// holds the location of this sprite
								// in the source bitmap
	float posX;					// the sprites X position
	float posY;					// the sprites Y position

	// movement
	float moveX;
	float moveY;

	// animation
	int numFrames;				// number of frames this animation has
	int curFrame;				// the current frame of animation
	int Direction;

	}sT;

	dxManager Dx;
	IDirect3DSurface9* spriteSurface;
public:
	//char** m_Block;
	Block();
	int getBHeight();
	int getBWidth();
	float getX();
	float getY();
	void SetHeight(int h);
	void SetWidth(int w);
	//char getBlock(int x, int y);
	bool loadBlockFiles(char* BlockFiles);
	void move();
	//void releaseBlocks();
	~Block();

};